package pl.edu.agh.uddiProxy.client;

import java.io.Serializable;

public class Currency implements Comparable<Currency>, Serializable {
	private static final long serialVersionUID = 4376477411856374520L;
	
	private String localeCode;
	private String currencyCode;
	private String countryName;

	public Currency() {
	}
	
	public Currency(String localeCode, String currencyCode, String countryName) {
		super();
		this.localeCode = localeCode;
		this.currencyCode = currencyCode;
		this.countryName = countryName;
	}

	public String getLocaleCode() {
		return localeCode;
	}

	public void setLocaleCode(String localeCode) {
		this.localeCode = localeCode;
	}

	public String getCurrencyCode() {
		return currencyCode;
	}

	public void setCurrencyCode(String currencyCode) {
		this.currencyCode = currencyCode;
	}

	public String getCountryName() {
		return countryName;
	}

	public void setCountryName(String countryName) {
		this.countryName = countryName;
	}

	public int compareTo(Currency o) {
		return currencyCode.compareTo(o.getCurrencyCode());
	}
	
	@Override
	public String toString() {
		return currencyCode + " - " + countryName; 
	}
}
